import Vue from "vue"
import Router from "vue-router"
import Main from "../components/Main"
import Login from "../components/Login"
import Userlist1 from "../components/views/Userlist1"
import Userlist2 from "../components/views/Userlist2"
import Info from "../components/views/Info"
import Report from "../components/views/Report"
import Notice from "../components/views/Notice"
import Houseinfo from "../components/views/Houseinfo"
Vue.use(Router);

export default new Router({
    routes: [{
            path: '/main',
            component: Main,
            children: [{
                    path: '/userlist1',
                    component: Userlist1
                },
                {
                    path: '/userlist2',
                    component: Userlist2
                }, {
                    path: '/info',
                    component: Info
                },
                {
                    path: '/report',
                    component: Report
                },
                {
                    path: '/notice',
                    component: Notice
                },
                {
                    path: '/Houseinfo',
                    component: Houseinfo
                }
            ],
        },
        {
            path: '/login',
            component: Login
        },
    ]
})